package com.jy.bo.common.conf.config;

import com.jy.bo.common.conf.config.service.DbConfigBaseService;
import org.springframework.stereotype.Component;

/**
 * Author: Amarendar
 * Date: 2020/8/20 上午10:31
 */
@Component
public class DbConfigUtil extends DbConfigBaseService {

    /**
     * 下单开关 true 开 false 关
     *
     * @return
     */
    public boolean getOrderSwitch(String productCode) {
        return getBooleanProperty("order.switch." + productCode, true);
    }

}
